import request from '@/plugins/axios'

export function fetchList(query) {
  return request({
    url: '/api/financebillflow/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/api/financebillflow',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/api/financebillflow/' + id,
    method: 'get'
  })
}


export function delObj(id) {
  return request({
    url: '/api/financebillflow/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/api/financebillflow',
    method: 'put',
    data: obj
  })
}
//根据实收id查询票据流水
export function getBillFlow(actualId) {
    return request({
        url: '/api/financebillflow/actual/' + actualId,
        method: 'get'
    })
}
//根据票据编号模糊查询票据流水
export function getFinanceBillFlowByBillNumber(query) {
    return request({
        url: '/api/financebillflow',
        method: 'get',
        params: query
    })
}
